import request from '../utils/request'

export function getCommentById(id, currentPage, pageSize) {
    return request({
        url: '/uum-blog/api/v2/door/listComment/' + id + "/" + currentPage + "/" + pageSize,
        method: 'get'
    })
}

export function addComment(data, currentPage, pageSize) {
    return request({
        url: '/uum-blog/api/v1/comment/add/' + currentPage + '/' + pageSize,
        method: 'post',
        data
    })
}

export function deleteComment(commentId, blogId) {
    return request({
        url: '/uum-blog/api/v1/comment/delete/' + commentId + '/' + blogId,
        method: 'delete',
    })
}






